package club.caihappy.admin.service.impl;

import club.caihappy.admin.bean.City;
import club.caihappy.admin.mapper.CityMapper;
import club.caihappy.admin.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by DELL on 2021/11/18
 **/
@Service
public class CityServiceImpl implements CityService {
    @Autowired
    CityMapper cityMapper;

    public City getById(Long id) {
        return cityMapper.getCityById(id);
    }

    public void saveCity(City city) {

        cityMapper.insert(city);
    }
}
